package com.ym.pms.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: xybh
 * @Description:
 * @Date: Created in 23:16 2020/12/1
 * @Modified:
 */
@Controller
public class IndexController {
    @RequestMapping("/")
    public String index(){
        return "redirect:doc.html";
    }

    @PutMapping("demo")
    public String put(@RequestParam String id){
        System.out.println(id);
        return "redirect:doc.html";
    }

    @DeleteMapping("demo")
    public String delete(@RequestParam String id){
        System.out.println(id);
        return "redirect:doc.html";
    }
}
